package jdir.util;

import java.io.File;

/**
 * This class is for generating paths.
 * @author Marco Peroverde
 *
 */
public class PathGen
{
	public final static int UNC = 0;
	public final static int DEFAULT = 99;
	private String path;
	
	/**
	 * Constructor for constructing paths
	 * @param type set Type of path. For example PathGen.UNC
	 * @param path Use ";" as seperator eg. ;home;username;
	 */
	public PathGen(int type, String path)
	{
	
		switch(type)
		{
		case 0:
			this.path = File.pathSeparator + File.pathSeparator + path.replace(";", File.pathSeparator);
			break;
		default:
			this.path = path.replace(";", File.pathSeparator);
		}
						
	}

	/**
	 * Get correct path with this method
	 * @return Path which was given to the constructor, now with system dependant seperator 
	 */
	public String getPath()
	{
		return path;
	}

	
}
